﻿using System;
using System.IO;
using System.Net;

namespace Koonfusion.SyncDeploy.Core.Services
{
    public interface IDownloadService
    {
        FileInfo DownloadFile(String source, FileInfo destination);
        String DownloadString(String source);
    }

    public class DownloadService : IDownloadService
    {
        public FileInfo DownloadFile(String source, FileInfo destination)
        {
            return null;
        }

        public String DownloadString(String source)
        {
            Console.WriteLine("IDownloadService Yo!!!");
            var webC = new WebClient();
            return webC.DownloadString(source);
        }
    }
}
